/*
 * Copyright (c) 2025 李伟国
 * SQL-API is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
 * KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package com.moyu.sql.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.moyu.sql.business.entity.MoyuSqlParam;
import com.moyu.sql.business.entity.MoyuSqlParamGroup;
import com.moyu.sql.business.entity.vo.MoyuSqlParamGroupDto;

import java.util.List;

public interface IMoyuSqlParamService extends IService<MoyuSqlParam> {

    /**
     * 根据参数组id查询参数列表
     *
     * @param sqlParamGroupId 参数组id
     * @return 参数列表
     */
    List<MoyuSqlParam> selectBySqlParamGroupId(String sqlParamGroupId);

    /**
     * 根据参数id查询参数
     *
     * @param groupDto 参数列表
     * @return 参数分组id
     */
    MoyuSqlParamGroup saveOrUpdateBatch(MoyuSqlParamGroupDto groupDto);

    /**
     * 通过分组id查询参数列表
     * @param groupId 分组id
     * @return 参数列表
     */
    MoyuSqlParamGroupDto getByGroupId(String groupId);
}
